package cn.wolfcode.pojo;

import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description: 用户实体类
 * @Author: 伍家钰
 * @Date: 2020/8/3 10:15
 * @Version: 1.0
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Document("users")
public class User {
    @Id
    private String id;

    /**
     * 用户姓名
     */
    private String name;

    /**
     * 用户年龄
     */
    private Integer age;

    /**
     * 用户爱好
     */
    private List<String> hobby = new ArrayList<>();
}
